package yaner.hotel.manager.resource.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import yaner.hotel.manager.common.dto.dict.DictAddDto;
import yaner.hotel.manager.common.dto.dict.DictUpdateDto;
import yaner.hotel.manager.common.vo.DictVo;
import yaner.hotel.manager.resource.entity.Dict;

@Mapper
public interface IDictMapper {
    IDictMapper INSTANCE = Mappers.getMapper(IDictMapper.class);

    DictVo toVo(Dict dict);

    Dict toAddEntity(DictAddDto dictAddDto);

    Dict toUpdateEntity(DictUpdateDto dictUpdateDto);
}
